package com.xlabs.client;


/**
 * Youtube adapter.
 */
public class YoutubeAdapter extends ChromelessPlayer
{
    /**
     * Player listener.
     */
	private PlayerListener listener;

	/**
     * Initializes a new instance of YoutubeAdapter
     *
     * @param name The name of the player.
     * @param listener Player listener.
     */
    public YoutubeAdapter(String name, PlayerListener listener) {
        super(name);
        
        this.listener = listener;
    }
    
    /**
     * Creates the player with appropriate size.
     */
    protected void onLoad() 
    {
        createSwf(600, 300, listener);
    }
}
